import QtQuick 1.0
import com.nokia.symbian 1.1

Dialog {
    id: root
    property alias text: text.text
    property alias title: titleText.text
    property bool fromGallery: false
    property bool imageCreated: false
    property bool openImage: false

    title: Text {
        id: titleText
        anchors.horizontalCenter: parent.horizontalCenter
        font.pointSize: 14
        color: "white"        
    }

    content: Text{
        id:text        
        anchors.horizontalCenter: parent.horizontalCenter
        color: "white"
    }

    buttons: ButtonRow{
        width: parent.width
        anchors.margins: 10
        Button{text:qsTr("Open");            
            onClicked: {                
                openImage = true;
                root.accept();
            }
            visible: imageCreated
        }
        Button{
            text:qsTr("Close");
            onClicked: root.accept();
        }
    }
}
